#include <stdio.h>
int sum_array(int *a, int n)
{
    int i = 0;
    int sum = 0;
    for (int i = 0; i < n; i++)
    {
        sum += *(a + i);
    }
    return sum;
}
int main()
{
    int a[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    int *nPtr = a;
    nPtr += 4;
    printf("%p", nPtr);
    int sum = sum_array(nPtr, 10);
    printf("%d\n", sum);
    return 0;
}
